package com.ewanghuiju.app.ui.home.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ewanghuiju.app.R;
import com.ewanghuiju.app.component.ImageLoader;
import com.ewanghuiju.app.model.bean.local.HomeLimitedSeckillLocalOne;
import com.ewanghuiju.app.widget.FixImageview;

/**
 * @author sj  qq:751943509
 * @class 首页限时秒杀显示
 * @time 2020/2/20
 */
public class HomeLimitedSeckillAdapter extends BaseQuickAdapter<HomeLimitedSeckillLocalOne, BaseViewHolder> {
    public HomeLimitedSeckillAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, HomeLimitedSeckillLocalOne item) {

        helper.setText(R.id.tv_title, item.getTitle());
        helper.setText(R.id.tv_msprice, item.getSpe_price());
        FixImageview iv = helper.getView(R.id.fiv_shop);
        ImageLoader.load(mContext, item.getImg(), iv);
    }
}
